package com.runshu.newsmartark.entity;

import com.runshu.newsmartark.dbutil.OperRecordfEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * Demo class
 *
 * @author yu
 * @date 12/15/20
 * @decs：
 */

public class InsertLogInfoEntity {
    private LogList logList;
    private CabinetSerialNoList cabinetSerialNoList;

    public LogList getLogList() {
        return logList;
    }

    public void setLogList(LogList logList) {
        this.logList = logList;
    }

    public CabinetSerialNoList getCabinetSerialNoList() {
        return cabinetSerialNoList;
    }

    public void setCabinetSerialNoList(CabinetSerialNoList cabinetSerialNoList) {
        this.cabinetSerialNoList = cabinetSerialNoList;
    }

    public static class LogList {
        private String macAddress;
        private List<OperRecordfEntity> logList;

        public LogList(String macAddress, List<OperRecordfEntity> logList) {
            this.macAddress = macAddress;
            this.logList = logList;
        }

        public String getMacAddress() {
            return macAddress == null ? "" : macAddress;
        }

        public void setMacAddress(String macAddress) {
            this.macAddress = macAddress == null ? "" : macAddress;
        }

        public List<OperRecordfEntity> getLogList() {
            if (logList == null) {
                return new ArrayList<>();
            }
            return logList;
        }

        public void setLogList(List<OperRecordfEntity> logList) {
            this.logList = logList;
        }
    }

    public static class CabinetSerialNoList {

        public CabinetSerialNoList(String macAddress, List<String> serialNoList) {
            this.macAddress = macAddress;
            this.serialNoList = serialNoList;
        }

        private String macAddress;

        private List<String> serialNoList;

        public String getMacAddress() {
            return macAddress == null ? "" : macAddress;
        }

        public void setMacAddress(String macAddress) {
            this.macAddress = macAddress == null ? "" : macAddress;
        }

        public List<String> getSerialNoList() {
            return serialNoList;
        }

        public void setSerialNoList(List<String> serialNoList) {
            this.serialNoList = serialNoList;
        }
    }




}